<?php
$servername = "aiyoyo";
$serusername = "aiyoyo";
$password = "xiaotaiyang123";
$dbname='aiyoyo';
// 创建连接
$conn = new mysqli($servername, $serusername, $password,$dbname);
// 检测连接
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}
echo "连接成功";

?>